/*
 * @author 陈腾
 */
import request from '@/utils/request'
// 新建
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pageRegister/insert',
    method: 'post',
    data
  })
}
// 列表
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pageRegister/queryPage',
    method: 'post',
    data
  })
}
// 删除
export function deleteById(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pageRegister/deleteById',
    method: 'post',
    data
  })
}
// 编辑
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pageRegister/update',
    method: 'post',
    data
  })
}
// 详情
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pageRegister/get',
    method: 'post',
    data
  })
}
/**
 * 获取自定义页面组件分类
 */
export function queryCommClass(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysClassify/getClassifyPTList',
    method: 'post',
    data
  })
}
/**
 * 获取自定义页面组件列表
 */
export function queryComponents(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/pageContainerDefined/queryCom',
    method: 'post',
    data
  })
}
